﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using Medianamik.Core;
using Medianamik.Core.Sugar;
using Roles = Medianamik.Core.Security.Roles;
using Medianamik.Core.Security;
using System.Collections.Generic;
using Medianamik.Globalization;

namespace Medianamik.UI.Web.ModalWindows.ContentManagement
{
    public partial class WebSiteSelectorWindow : BasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                ddlWebSites.Items.AddRange(ConfigManager.GetAll<WebSite>()
                    .Select(w => new ListItem(w.Name, w.ID.ToString())).ToArray());
                ddlWebSites.Items.Insert(0, new ListItem("", ""));
            }
        }
    }
}
